home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #11 / Amiga Plus CD - 2002 - No. 11.iso / Tools / Development / PowerD / powerd / modules.lha / modules / workbench / workbench.m < prev   
Encoding:
Text File  |  2002-02-06  |  7.7 KB  |  288 lines

  1. MODULE 'intuition/intuition','workbench/startup'
  2.  
  3. CONST WBDISK=1,
  4.  WBDRAWER=2,
  5.  WBTOOL=3,
  6.  WBPROJECT=4,
  7.  WBGARBAGE=5,
  8.  WBDEVICE=6,
  9.  WBKICK=7,
  10.  WBAPPICON=8
  11.  
  12. OBJECT OldDrawerData
  13.   NewWindow:NewWindow,
  14.   CurrentX:LONG,
  15.   CurrentY:LONG
  16. #define OLDDRAWERDATAFILESIZE   SIZEOF_OldDrawerData
  17.  
  18. OBJECT DrawerData
  19.   NewWindow:NewWindow,
  20.   CurrentX:LONG,
  21.   CurrentY:LONG,
  22.   Flags:ULONG,
  23.   ViewModes:UWORD
  24. #define DRAWERDATAFILESIZE  SIZEOF_DrawerData
  25.  
  26. #define DDVM_BYDEFAULT    0
  27. #define DDVM_BYICON     1
  28. #define DDVM_BYNAME     2
  29. #define DDVM_BYDATE     3
  30. #define DDVM_BYSIZE     4
  31. #define DDVM_BYTYPE     5
  32. #define DDFLAGS_SHOWDEFAULT   0
  33. #define DDFLAGS_SHOWICONS   1
  34. #define DDFLAGS_SHOWALL     2
  35.  
  36. OBJECT DiskObject
  37.   Magic:UWORD,
  38.   Version:UWORD,
  39.   Gadget:Gadget,
  40.   Type:UBYTE,
  41.   DefaultTool:PTR TO UBYTE,
  42.   ToolTypes:PTR TO PTR TO UBYTE,
  43.   CurrentX:LONG,
  44.   CurrentY:LONG,
  45.   DrawerData:PTR TO DrawerData,
  46.   ToolWindow:PTR TO UBYTE,
  47.   StackSize:LONG
  48.  
  49. #define WB_DISKMAGIC  $e310 
  50. #define WB_DISKVERSION  1
  51. #define WB_DISKREVISION   1
  52. #define WB_DISKREVISIONMASK   255
  53. OBJECT FreeList
  54.   NumFree:WORD,
  55.   MemList:List
  56.  
  57. #define GFLG_GADGBACKFILL  $0001
  58. #define GADGBACKFILL    $0001    
  59. #define NO_ICON_POSITION  ($80000000)
  60. #define WORKBENCH_NAME    'workbench.library'
  61. #define AM_VERSION  1
  62. OBJECT AppMessage
  63.   Message:Message,
  64.   Type:UWORD,
  65.   UserData:ULONG,
  66.   ID:ULONG,
  67.   NumArgs:LONG,
  68.   ArgList:PTR TO WBArg,
  69.   Version:UWORD,
  70.   Class:UWORD,
  71.   MouseX:WORD,
  72.   MouseY:WORD,
  73.   Seconds:ULONG,
  74.   Micros:ULONG,
  75.   Reserved[8]:ULONG
  76.  
  77. #define AMTYPE_APPWINDOW         7
  78. #define AMTYPE_APPICON          8
  79. #define AMTYPE_APPMENUITEM       9
  80. #define AMTYPE_APPWINDOWZONE    10
  81. #define AMCLASSICON_Open  0
  82. #define AMCLASSICON_Copy  1
  83. #define AMCLASSICON_Rename  2
  84. #define AMCLASSICON_Information   3
  85. #define AMCLASSICON_Snapshot  4
  86. #define AMCLASSICON_UnSnapshot  5
  87. #define AMCLASSICON_LeaveOut  6
  88. #define AMCLASSICON_PutAway   7
  89. #define AMCLASSICON_Delete  8
  90. #define AMCLASSICON_FormatDisk  9
  91. #define AMCLASSICON_EmptyTrash  10
  92. #define AMCLASSICON_Selected  11
  93. #define AMCLASSICON_Unselected  12
  94. OBJECT AppWindow
  95.   PRIVATE:VOID
  96.  
  97. OBJECT AppWindowDropZone
  98.   PRIVATE:VOID
  99.  
  100. OBJECT AppIcon
  101.   PRIVATE:VOID
  102.  
  103. OBJECT AppMenuItem
  104.   PRIVATE:VOID
  105.  
  106. OBJECT AppMenu
  107.   PRIVATE:VOID
  108.  
  109. #define WBA_Dummy  (TAG_USER+$A000)
  110. #define WBAPPICONA_SupportsOpen     (WBA_Dummy+1)
  111. #define WBAPPICONA_SupportsCopy     (WBA_Dummy+2)
  112. #define WBAPPICONA_SupportsRename   (WBA_Dummy+3)
  113. #define WBAPPICONA_SupportsInformation  (WBA_Dummy+4)
  114. #define WBAPPICONA_SupportsSnapshot   (WBA_Dummy+5)
  115. #define WBAPPICONA_SupportsUnSnapshot   (WBA_Dummy+6)
  116. #define WBAPPICONA_SupportsLeaveOut   (WBA_Dummy+7)
  117. #define WBAPPICONA_SupportsPutAway  (WBA_Dummy+8)
  118. #define WBAPPICONA_SupportsDelete   (WBA_Dummy+9)
  119. #define WBAPPICONA_SupportsFormatDisk   (WBA_Dummy+10)
  120. #define WBAPPICONA_SupportsEmptyTrash   (WBA_Dummy+11)
  121. #define WBAPPICONA_PropagatePosition  (WBA_Dummy+12)
  122. #define WBAPPICONA_RenderHook     (WBA_Dummy+13)
  123. #define WBAPPICONA_NotifySelectState  (WBA_Dummy+14)
  124. #define WBAPPMENUA_CommandKeyString    (WBA_Dummy+15)
  125. #define WBAPPMENUA_GetKey     (WBA_Dummy+65)
  126. #define WBAPPMENUA_UseKey     (WBA_Dummy+66)
  127. #define WBAPPMENUA_GetTitleKey    (WBA_Dummy+77)
  128. #define WBOPENA_ArgLock       (WBA_Dummy+16)
  129. #define WBOPENA_ArgName       (WBA_Dummy+17)
  130. #define WBOPENA_Show      (WBA_Dummy+75)
  131. #define WBOPENA_ViewBy      (WBA_Dummy+76)
  132. #define WBCTRLA_IsOpen      (WBA_Dummy+18)
  133. #define WBCTRLA_DuplicateSearchPath   (WBA_Dummy+19)
  134. #define WBCTRLA_FreeSearchPath    (WBA_Dummy+20)
  135. #define WBCTRLA_GetDefaultStackSize   (WBA_Dummy+21)
  136. #define WBCTRLA_SetDefaultStackSize   (WBA_Dummy+22)
  137. #define WBCTRLA_RedrawAppIcon     (WBA_Dummy+23)
  138. #define WBCTRLA_GetProgramList    (WBA_Dummy+24)
  139. #define WBCTRLA_FreeProgramList     (WBA_Dummy+25)
  140. #define WBCTRLA_GetSelectedIconList   (WBA_Dummy+36)
  141. #define WBCTRLA_FreeSelectedIconList  (WBA_Dummy+37)
  142. #define WBCTRLA_GetOpenDrawerList   (WBA_Dummy+38)
  143. #define WBCTRLA_FreeOpenDrawerList  (WBA_Dummy+39)
  144. #define WBCTRLA_GetHiddenDeviceList   (WBA_Dummy+42)
  145. #define WBCTRLA_FreeHiddenDeviceList  (WBA_Dummy+43)
  146. #define WBCTRLA_AddHiddenDeviceName   (WBA_Dummy+44)
  147. #define WBCTRLA_RemoveHiddenDeviceName  (WBA_Dummy+45)
  148. #define WBCTRLA_GetTypeRestartTime  (WBA_Dummy+47)
  149. #define WBCTRLA_SetTypeRestartTime  (WBA_Dummy+48)
  150. #define WBCTRLA_GetCopyHook     (WBA_Dummy+69)
  151. #define WBCTRLA_SetCopyHook     (WBA_Dummy+70)
  152. #define WBCTRLA_GetDeleteHook     (WBA_Dummy+71)
  153. #define WBCTRLA_SetDeleteHook     (WBA_Dummy+72)
  154. #define WBCTRLA_GetTextInputHook  (WBA_Dummy+73)
  155. #define WBCTRLA_SetTextInputHook  (WBA_Dummy+74)
  156. #define WBCTRLA_AddSetupCleanupHook   (WBA_Dummy+78)
  157. #define WBCTRLA_RemSetupCleanupHook   (WBA_Dummy+79)
  158. OBJECT SetupCleanupHookMsg
  159.   Length:ULONG,
  160.   State:LONG
  161.  
  162. #define SCHMSTATE_TryCleanup  0
  163. #define SCHMSTATE_Cleanup   1
  164. #define SCHMSTATE_Setup     2
  165. #define WBDZA_Left  (WBA_Dummy+26)
  166. #define WBDZA_RelRight  (WBA_Dummy+27)
  167. #define WBDZA_Top   (WBA_Dummy+28)
  168. #define WBDZA_RelBottom   (WBA_Dummy+29)
  169. #define WBDZA_Width   (WBA_Dummy+30)
  170. #define WBDZA_RelWidth  (WBA_Dummy+31)
  171. #define WBDZA_Height  (WBA_Dummy+32)
  172. #define WBDZA_RelHeight   (WBA_Dummy+33)
  173. #define WBDZA_Box   (WBA_Dummy+34)
  174. #define WBDZA_Hook  (WBA_Dummy+35)
  175. #define WBA_Reserved1   (WBA_Dummy+40)
  176. #define WBA_Reserved2   (WBA_Dummy+41)
  177. #define WBA_Reserved3   (WBA_Dummy+46)
  178. #define WBA_Reserved4   (WBA_Dummy+49)
  179. #define WBA_Reserved5   (WBA_Dummy+50)
  180. #define WBA_Reserved6   (WBA_Dummy+51)
  181. #define WBA_Reserved7   (WBA_Dummy+52)
  182. #define WBA_Reserved8   (WBA_Dummy+53)
  183. #define WBA_Reserved9   (WBA_Dummy+54)
  184. #define WBA_Reserved10  (WBA_Dummy+55)
  185. #define WBA_Reserved11  (WBA_Dummy+56)
  186. #define WBA_Reserved12  (WBA_Dummy+57)
  187. #define WBA_Reserved13  (WBA_Dummy+58)
  188. #define WBA_Reserved14  (WBA_Dummy+59)
  189. #define WBA_Reserved15  (WBA_Dummy+60)
  190. #define WBA_Reserved16  (WBA_Dummy+61)
  191. #define WBA_Reserved17  (WBA_Dummy+62)
  192. #define WBA_Reserved18  (WBA_Dummy+63)
  193. #define WBA_Reserved19  (WBA_Dummy+64)
  194. #define WBA_Reserved20  (WBA_Dummy+67)
  195. #define WBA_Reserved21  (WBA_Dummy+68)
  196. #define WBA_LAST_TAG  (WBA_Dummy+79)
  197. OBJECT AppIconRenderMsg
  198.   RastPort:PTR TO RastPort,
  199.   Icon:PTR TO DiskObject,
  200.   Label:PTR TO UBYTE,
  201.   Tags:PTR TO TagItem,
  202.   Left:WORD,
  203.   Top:WORD,
  204.   Width:WORD,
  205.   Height:WORD,
  206.   State:ULONG
  207.  
  208. OBJECT AppWindowDropZoneMsg
  209.   RastPort:PTR TO RastPort,
  210.   DropZoneBox:IBox,
  211.   ID:ULONG,
  212.   UserData:ULONG,
  213.   Action:LONG
  214.  
  215. #define ADZMACTION_Enter  (0)
  216. #define ADZMACTION_Leave  (1)
  217. OBJECT IconSelectMsg
  218.   Length:ULONG,
  219.   Drawer:PTR,
  220.   Name:PTR TO UBYTE,
  221.   Type:UWORD,
  222.   Selected:BOOL,
  223.   Tags:PTR TO TagItem,
  224.   DrawerWindow:PTR TO Window,
  225.   ParentWindow:PTR TO Window,
  226.   Left:WORD,
  227.   Top:WORD,
  228.   Width:WORD,
  229.   Height:WORD
  230.  
  231. #define ISMACTION_Unselect  (0)
  232. #define ISMACTION_Select  (1)
  233. #define ISMACTION_Ignore  (2)
  234. #define ISMACTION_Stop    (3)
  235. OBJECT CopyBeginMsg
  236.   Length:ULONG,
  237.   Action:LONG,
  238.   SourceDrawer:PTR,
  239.   DestinationDrawer:PTR
  240.  
  241. OBJECT CopyDataMsg
  242.   Length:ULONG,
  243.   Action:LONG,
  244.   SourceLock:PTR,
  245.   SourceName:PTR TO UBYTE,
  246.   DestinationLock:PTR,
  247.   DestinationName:PTR TO UBYTE,
  248.   DestinationX:LONG,
  249.   DestinationY:LONG
  250.  
  251. OBJECT CopyEndMsg
  252.   Length:ULONG,
  253.   Action:LONG
  254.  
  255. #define CPACTION_Begin    (0)
  256. #define CPACTION_Copy     (1)
  257. #define CPACTION_End    (2)
  258. OBJECT DeleteBeginMsg
  259.   Length:ULONG,
  260.   Action:LONG
  261.  
  262. OBJECT DeleteDataMsg
  263.   Length:ULONG,
  264.   Action:LONG,
  265.   Lock:PTR,
  266.   Name:PTR TO UBYTE
  267.  
  268. OBJECT DeleteEndMsg
  269.   Length:ULONG,
  270.   Action:LONG
  271.  
  272. #define DLACTION_BeginDiscard     (0)
  273. #define DLACTION_BeginEmptyTrash  (1)
  274. #define DLACTION_DeleteContents     (3)
  275. #define DLACTION_DeleteObject     (4)
  276. #define DLACTION_End      (5)
  277. OBJECT TextInputMsg
  278.   Length:ULONG,
  279.   Action:LONG,
  280.   Prompt:PTR TO UBYTE
  281.  
  282. #define TIACTION_Rename     (0) 
  283. #define TIACTION_RelabelVolume  (1) 
  284. #define TIACTION_NewDrawer  (2) 
  285. #define TIACTION_Execute  (3) 
  286. #define UPDATEWB_ObjectRemoved  (0)
  287. #define UPDATEWB_ObjectAdded  (1)
  288.